Skip to content

Comments

Migration to phpstan/phpstan 1.10#126

Merged
JulienRAVIA merged 5 commits intomainfrom
upgrade-phpstan
Jan 5, 2024
Merged

Migration to phpstan/phpstan 1.10#126
JulienRAVIA merged 5 commits intomainfrom
upgrade-phpstan

Conversation

@JulienRAVIA
Copy link
Contributor

@JulienRAVIA JulienRAVIA commented Nov 13, 2023

For the PHP8 migration ;)

There is one PHPStan error i don't manage to fix.

Any help to solve this one is apprecied :)

@JulienRAVIA JulienRAVIA marked this pull request as draft November 13, 2023 19:59
@JulienRAVIA JulienRAVIA marked this pull request as ready for review November 13, 2023 22:24
Comment on lines +39 to +42
/** @var ?class-string $repository */
$repository = $this->repository;

return $repository;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do not return repository & update type definition on property declaration ?

Suggested change
/** @var ?class-string $repository */
$repository = $this->repository;
return $repository;
return $this->repository;

Copy link
Contributor Author

@JulienRAVIA JulienRAVIA Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's for the phpDoc ;) else it's not handled
it's very temporary, this pr : #124 will overwrite it.

@JulienRAVIA JulienRAVIA merged commit a881783 into main Jan 5, 2024
@JulienRAVIA JulienRAVIA deleted the upgrade-phpstan branch January 5, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants